#include "QtUI/ProjectInformationDialog.qth"
#include "QtUI/ProjectInformationDialog.moh"
#include "QtUI/ProjectInformationWidget.qth"
#include <QtGui/QDialogButtonBox>
#include <QtGui/QVBoxLayout>
#include <QtGui/QPushButton>


namespace QtUI
{

ProjectInformationDialog::ProjectInformationDialog( const Storage::ConnectionConfigCollection& connCfgColl, QWidget* pParent)
	: QDialog( pParent)
	, pPrjInfoWidget_( NULL)
{
	this->setWindowModality( Qt::ApplicationModal);

	QVBoxLayout* pLayout = new QVBoxLayout();
	this->setLayout( pLayout);

	pPrjInfoWidget_ = new ProjectInformationWidget( connCfgColl);
	pLayout->addWidget( pPrjInfoWidget_);

	QDialogButtonBox* pDlgButtonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
	pLayout->addWidget( pDlgButtonBox);

	connect( pDlgButtonBox, SIGNAL( accepted()), this, SLOT( accept()));
	connect( pDlgButtonBox, SIGNAL( rejected()), this, SLOT( reject()));
}

} // namespace QtUI
